package entity;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果实体
 * @author ws
 */
public class PageResult implements Serializable {
    /**
     * 总记录数
     */
    private long total;
    /**
     * 当前页的记录结果
     */
    private List result;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List getResult() {
        return result;
    }

    public void setResult(List result) {
        this.result = result;
    }

    public PageResult(long total, List result) {
        this.total = total;
        this.result = result;
    }
}
